package com.example.walled_houses.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author chengtaoxie
 * @since 2023-10-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("wh_opinion")
public class Opinion implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 意见id
     */
    @TableId(value = "opinion_id", type = IdType.AUTO)
    private Integer opinionId;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 用户意见
     */
    private String opinionText;

    /**
     * 用户发布意见时间
     */

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime opinionTime;


}
